package com.atguigu.ggkt.vod.service;


import com.atguigu.ggkt.model.vod.Course;
import com.atguigu.ggkt.vo.vod.CourseFormVo;
import com.atguigu.ggkt.vo.vod.CoursePublishVo;
import com.atguigu.ggkt.vo.vod.CourseQueryVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author atguigu
 * @since 2023-03-31
 */
public interface CourseService extends IService<Course> {

    //课程列表
    Map<String, Object> findPage(Page<Course> coursePage, CourseQueryVo courseQueryVo);

    //添加课程
    Long saveCourseInfo(CourseFormVo courseFormVo);

    //根据id查询
    CourseFormVo getCourseFormVoById(Long id);

    //根据id修改
    void updateCourseById(CourseFormVo courseFormVo);

    //根据id获取课程发布信息
    CoursePublishVo getCoursePublishVo(Long id);

    //根据id发布课程
    void publishCourseById(Long id);

    //删除课程
    void removeCourseById(Long id);

    //根据id查询课程
    Map<String, Object> getInfoById(Long courseId);
}
